fixing the cli option retry_download_count to support simulator#405
fixing the cli option retry_download_count to support simulator#405gunesmes wants to merge 21 commits intoxcpretty:masterfrom
Conversation
|
@jpsim @freddi-kit could you please review this? |
|
Thank you for fixing my bug! 👍 I did not notice |
Co-authored-by: freddi(Yuki Aki) <[email protected]>
Co-authored-by: JP Simard <[email protected]>
|
@freddi-kit could you please review changes? |
|
@gunesmes |
To solve all offenses, we should have made the |
|
@jpsim fixed the issues, could you please accept the pr? |
|
@jpsim who can push to gem? it would be helpful the person who have network issue of curl. |
|
Is there something holding up this pull-request? It sounds like the work has been completed. I tried just cloning the repo and running from this branch, but I can't seem to get it to work. I think it's likely my lack of Ruby knowledge is the problem though. I get an error running If this isn't ready to be merged, could someone offer some guidance on how I can get this branch working as a temporary fix? |
|
@traviswimer someone who have write access should approve this PR and then push the gem for the new release. @joshdholtz @KrauseFx @orta or @steipete |
|
@gunesmes On it! And just for record... I’m the only one out of those 4 mentioned that are associated with this project ATM so no need to mention them in the future 😉 Just trying to save everyone from some extra GitHub notifications 🙃 |
joshdholtz
left a comment
There was a problem hiding this comment.
@gunesmes One small question before approving/merging! And thanks for thIs PR and the ping ❤️
lib/xcode/install/install.rb
Outdated
| ['--no-clean', 'Don’t delete DMG after installation.'], | ||
| ['--no-show-release-notes', 'Don’t open release notes in browser after installation.'], | ||
| ['--retry-download-count', 'Count of retrying download when curl is failed.']].concat(super) | ||
| ['--number-of-try', 'How many times try to download DMG file if downloading fails. Default is 3.']].concat(super) |
There was a problem hiding this comment.
I think I’m confused on what the reasoning for this rename is. This is technically a breaking change, isn’t it? Was there some issue with retry-download-count?
If anything, I would maybe recommend this to be named retry-count. Thoughts?
There was a problem hiding this comment.
I thought that this would be better for grammar.
There was a problem hiding this comment.
I changed the parameter to retry-count
There was a problem hiding this comment.
Thank you! I will pull down and play with one more time after I’m done taking the doggo for a walk 😊
Thanks again for this PR! I’ll get it release in an hour or so if all is 💯 (which is looks like it should be)
joshdholtz
left a comment
There was a problem hiding this comment.
I think the fetching of options need to be renamed too? 🤔 After this we should be good!
Co-authored-by: Josh Holtz <[email protected]>
Co-authored-by: Josh Holtz <[email protected]>
joshdholtz
left a comment
There was a problem hiding this comment.
One more thing! I think we want to keep the --retry that was getting passed in to curl
The return around curl is a redundancy around the curl retry I believe 😇
…//github.com/gunesmes/xcode-install into fix/extending-cli-option-retry-for-simulator
|
@joshdholtz to fix the |
|
@gunesmes Thank you! Testing this out one more time by downloading some Xcode but code is looking 💯 |
joshdholtz
left a comment
There was a problem hiding this comment.
Downloading seems good! But had an error installing 🤔
|
@gunesmes What is this PR originally just for? Was this just for really adding the |
|
Yes this is fixing the simulator part for adding retry-count. |
|
@gunesmes Okay, thank you! I’ll dig in to see what’s going on. I might end up redoing some of the argument name changes to make it backwards compatible with the previous version but I will make sure that parameter works 😇 Hopefully we can get this merged and released for you tomorrow! |
|
How is this progressed? |
|
@joshdholtz do you have any update for the your testing? |
|
Can we please bump the default retry count to 10 because there is no way this succeeds in three attempts. But on the other side, it looks like I think the code handling the retry count should be fixed, i.e: That's the thing I continue witnessing for years now: |
|
Update retrial count to 10 |
|
I am not sure what is missing to put the changes here to a release. It looks like it could be missing some kind of approval from @joshdholtz I am trying to install simulators with xcversion, but it fails every time. I tried already around 10 times. I would like this to be more reliable, because we want to use this for the setup of our CI machines. xcversion is an amazing tool and it helps us already a lot with installing different kind of Xcode versions, thanks a lot! |
|
@joshdholtz this is still waiting for your approval, any chance you can review it? |
While I was submitting my PR #404, it was already solved by @freddi-kit with #400. However this PR includes an update for downloading simulators but the corresponding part was not implemented to
simulators.rbso this will cause a bug for downloading simulators, as following:or
This PR is fixing this
Simulator
without
--retry_download_count, default is 3with
--retry-download-count=5will try to dowload 5 times